package com.jm.springboot21.service.impl;

import com.jm.springboot21.mapper.ExprMapper;
import com.jm.springboot21.pojo.Expr;
import com.jm.springboot21.service.ExprService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExprServiceImpl implements ExprService {
    @Autowired
    private ExprMapper exprMapper;
    @Override
    public int insert(Expr expr) {
        return exprMapper.insert(expr);
    }

    @Override
    public int update(Expr expr) {
        return exprMapper.update(expr);
    }

    @Override
    public int delete(Integer id) {
        return exprMapper.delete(id);
    }

    @Override
    public Expr findById(Integer id) {
        return exprMapper.findById(id);
    }

    @Override
    public List<Expr> findByEmpId(Integer empId) {
        return exprMapper.findByEmpId(empId);
    }

    @Override
    public void addExprs(List<Expr> exprs) {
        exprMapper.addExprs(exprs);
    }
}
